package com.create.singleton;

/**
 * 静态内部类(懒汉式的一种，线程安全，延迟加载)
 *
 * @author xiaobing
 * @version 1.0
 * @date 2021/9/6 2:27 下午
 */
public class StaticInterSingleton {
    private static class StaticInSideSingleton {
        private static final StaticInterSingleton INTER_SINGLETON = new StaticInterSingleton();
    }

    public StaticInterSingleton() {
    }

    public static final StaticInterSingleton getInstance() {
        return StaticInSideSingleton.INTER_SINGLETON;
    }
}
